export default [
    {
        path: '/',
        redirect: '/company'
    },
    {
        path: '/login',
        component: () => import('@/views/auth/login/index.vue'),
        meta: {
            title: '登录',
            loginAuth: false
        }
    },
    {
        path: '/regist',
        component: () => import('@/views/auth/regist/index.vue'),
        meta: {
            title: '注册',
            loginAuth: false
        }
    },
    {
        path: '/findpwd',
        component: () => import('@/views/auth/findpwd/index.vue'),
        meta: {
            title: '找回密码',
            loginAuth: false
        }
    },
    {
        path: '/404',
        component: () => import('@/views/auth/404.vue'),
        meta: {
            title: '404',
            loginAuth: false
        }
    },
    {
        path: '/:pathMatch(.*)',
        redirect: '/404'
    },
    {
        path: '/home',
        component: () => import('@/views/home/index.vue'),
        meta: {
            title: '首页',
            loginAuth: true
        }
    }
];
